package com.example.demo.com.me;


import com.example.demo.com.me.com.me.Pet.Person;
import com.example.demo.com.me.com.me.config.DBConnector;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class hi {
    @Autowired
    private Person person;

    @GetMapping("/")
    public String hello() {
//        System.out.println(person);
        return String.valueOf(person);
    }

    @GetMapping("/hello")
    public String ciao() {
        return "hello";
    }

}
